<{include file='customer/head.html'}>
<style type="text/css">
	body{padding: 0px;margin: 0px;overflow: hidden;}
	#indexHeader{height: 50px;line-height: 50px;border: 1px solid #ccc;background: #071e35;color: #fff;}
	#indexHeader:after{content: '\20';clear: both;*zoom: 1;display: block;height: 0;}
	#indexHeader .indexHeader_left{float: left;font-size: 18px;padding-left:10px;}
	#indexHeader .indexHeader_right{float: right;padding-right: 10px;}
	#indexHeader .indexHeader_right a{color: #fff;}
	#indexContentLeft{float: left;position: absolute;left:0px;width: 200px;border: 1px solid #ccc;background: #071e35;color: #fff;}
	#indexContentLeft div{height: 35px;line-height: 35px;margin: 2px auto;padding-left: 25px;cursor: pointer;}
	#indexContentLeft div:hover{background: rgba(255,255,255,.3)}
	#indexContentLeft div.active{background: #1890ff;}
	#indexContentRight{float: left;position: absolute;left: 200px;width:calc(100% - 200px); border: 1px solid #000;}
	#indexContentRight #indexContentRightIframe{border: 0px;width: 100%;height: 100%;overflow:hidden;}
	#indexContent:after{content: '\20';clear: both;*zoom: 1;display: block;height: 0;}
</style>
<body>
<div id="indexHeader">
	<div class="indexHeader_left"><span>奥科睿项目管理系统</span></div>
	<div class="indexHeader_right">
		<span><{$pmsuserinfo.name}></span>
		<span><a href="javascript:userinfo()">个人中心</a></span>
		<span><a href="javascript:loginout()">登出</a></span>
	</div>
</div> 
<div id="indexContent">
	<div id="indexContentLeft">
		<div class="leftmenu active" iframe-url='/AdminIndex/projectProgress'>欢迎页</a></div>
		<{if $pmsuserinfo.isitadministrator==1}>
		<div class="leftmenu" iframe-url='/User/userList'>用户管理</a></div>
		<{/if}>
		<{if $pmsuserinfo.isitadministrator==1}>
		<div class="leftmenu" iframe-url='/CustomerIndex/lists'>客户管理</div>
		<div class="leftmenu" iframe-url='/ProjectIndex/lists'>项目管理</div>
		<{/if}>
		<div class="leftmenu" iframe-url='/ProjectRecord/projectRecordList'>项目任务</div>
		<{if $pmsuserinfo.isitadministrator==1}>
		<div class="leftmenu" iframe-url='/UserRecord/userRecordList'>日志管理</div>
		<{/if}>
	</div>
	<div id="indexContentRight">
		<iframe id="indexContentRightIframe" src="/AdminIndex/projectProgress"></iframe>
	</div>>
</div>
<script type="text/javascript">
	//当前登陆用户修改
	function userinfo(){
		_hcinits.init(['_layer_admin_min'],function(){
			_layer_admin=_hcinits._layer_admin;
			_layer_admin.open('编辑','/userCurrentInfo/userCurrentInfoEdit');
		})
	}
	function loginout(){
		window.location.href='/Login/loginout';
	}
	function setIndexContentLeftHeight(){
		var clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
		var indexHeaderHeight=document.getElementById("indexHeader").offsetHeight || document.getElementById("indexHeader").offsetHeight;
		var indexContentLeftHeight=parseInt(clientHeight)-parseInt(indexHeaderHeight);
		$('#indexContentLeft').css('height',indexContentLeftHeight);
		$('#indexContentRight').css('height',indexContentLeftHeight);
	}
	window.onload=function(){
		setIndexContentLeftHeight();
	}
	$(window).resize(function() {
   		setIndexContentLeftHeight();
	})
	$(function(){
		//右侧内容更新
		$('.leftmenu').click(function(){
			$(this).addClass('active').siblings().removeClass('active');
			var iframeurl=$(this).attr('iframe-url');
			$('#indexContentRightIframe').attr('src',iframeurl);
		})
	})
</script>
</body>
</html>